with open("test.txt",mode='r',encoding='utf-8') as f:
    context =  f.read()
    print(context)

 # with 语句会自动关闭文件
